/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javaapplication1;

import java.util.Collection;
import java.util.HashMap;
import java.util.Iterator;

/**
 *
 * @author Oren
 */
public class Simulation {
    
    private HashMap<String,Robot> robotHash = new HashMap<String,Robot>() ;
    private Iterator<String> it;


    public Simulation()
    {
        it=robotHash.keySet().iterator();
    }

    public Collection getHashmap()
    {
        return robotHash.values();
    }


    public Robot getRobot(String name)
    {
        return robotHash.get(name);
    }
    
    public void setRobot (Robot temp_robot,String name)
    {
        robotHash.put(name, temp_robot);
    }

}
